home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vypalování CD
/
Vypalovani-CD-cd2.bin
/
D2 1.0
/
d2.dsc
< prev
next >
Wrap
Text File
|
2002-06-12
|
5KB
|
286 lines
external vdsinout.dll
%l = "|"
option fieldsep,%l
title Disk Directory
DIALOG CREATE,Disk Directory,-1,0,567,486,-
BUTTON(search;430;310;;;),-
LIST(LIST1;14;92;460;400;sorted;click),-
BUTTON(choosedir;10;10;;;Choose Dir),-
BUTTON(saved;40;10;;;Save File),-
BUTTON(loadd;70;10;;;Load File),-
check(samedir;250;10;70;;same dir),-
check(autoname;200;10;70;;autoname;1),-
check(autosave;225;10;70;;autosave;1),-
BUTTON(disc;275;10;;;),-
COMBO(samec;300;10;70;;e:\),-
check(adddiskch;330;10;70;;add disk;1),-
check(runlist;350;10;70;;run list;0),-
COMBO(exploretypec;380;10;70;;explore),-
BUTTON(merge;430;10;;;),-
COMBO(searchc;430;200;100),-
check(keeplist;430;480;70;;keeplist;0),-
check(stops;430;400;80;;stop;0),-
BUTTON(copy;430;100;;;),-
DLGTYPE(SAVEPOS),-
STATUS(STATUS)
list samec,add,c:\
list samec,add,d:\
list samec,add,e:\
list samec,add,f:\
list samec,add,g:\
list exploretypec,add,explore
list exploretypec,add,open
list exploretypec,add,browse
:evloop
wait event
goto @event()
:discbutton
run @windir()\"explorer.exe /E,"@dlgtext(samec)
goto evloop
:list1click
%y =
%r =
%a =
%c =
%Y = @item(list1)
parse "%r;%A;%c", %Y
if @file(%r)
if @dlgtext(runlist)
if @equal(@dlgtext(exploretypec),explore)
run @windir()\"explorer.exe /E,"@path(%r)
end
if @equal(@dlgtext(exploretypec),open)
shell open,%r
end
if @equal(@dlgtext(exploretypec),browse)
shell open,@path(%r)
end
end
goto filex
end
if @file(%r,d)
if @dlgtext(runlist)
run @windir()\"explorer.exe /E,"%r
end
end
:filex
dialog set,status,cd: %c"," file: %r"," size: %a Bytes
%y =
%r =
%a =
goto evloop
:copyBUTTON
list list1,copy
goto evloop
:searchBUTTON
if @not(@file(base.txt))
info No base.txt. Press merge.
goto evloop
end
dialog set,status, working
dialog set,stops,0
%a =
%b = 1
%t = base.txt
%x =
%y =
if @not(@dlgtext(keeplist))
list list1,clear
end
repeat
%a = @IO(FPOSC,%t,%b,,@dlgtext(searchc))
if @not(@equal(0,%a))
%b = %a
repeat
if @dlgtext(stops)
goto ends
end
%b = @pred(%b)
until @equal(@IO(READC,%t,%b,%b,),:)
%x = @pred(%b)
%b = %a
repeat
if @dlgtext(stops)
goto ends
end
%b = @succ(%b)
if @equal(%b,@FILE(%t,z))
%a = 0
%y = %b
goto endgame
end
until @equal(@asc(@IO(READC,%t,%b,%b,)),10)
%y = @diff(%b,2)
:endgame
list list1,add,@IO(READC,%t,%x,%y,)
end
%b = @succ(%a)
if @dlgtext(stops)
goto ends
end
until @equal(0,%a)
:ends
%a =
%b = 1
%t = base.txt
%x =
%y =
if @equal(@count(list1),0)
dialog set,status,Search string not found.
else
dialog set,status,Search string found in @count(list1) places.
end
goto evloop
:choosedirBUTTON
%d =
if @dlgtext(samedir)
%d = @dlgtext(samec)
else
%d = @dirdlg()
end
%c = %d
%q =
%q = @volinfo(%c,n).txd
if @not(%d)
goto evloop
end
if @not(@dlgtext(autoname))
%q = @input(name,%q)
end
if %d
dialog set,samec,%d
if @equal(@LEN(%d),3)
%d = @SUBSTR(%d,1,2)
end
list list1,clear
list 1,create
list 2,create
list 3,create
dialog set,status,Indexing ...
list 1,filelist,%D,*
repeat
dialog set,status,Searching %D
list 2,filelist,%d\*.*,srhad
repeat
%F = @next(2)
if %F
if @dlgtext(adddiskch)
list 3,add,%F%l@file(%f,z)%l%q
end
if @not(@dlgtext(adddiskch))
list 3,add,%F%l@file(%f,z)
end
end
until @null(%F)
list 2,clear
%D = @next(1)
until @null(%D)
list 1,close
list 2,close
list list1,assign,3
list 3,close
dialog set,status, Done
end
if @dlgtext(autosave)
if @file(@name(%q).txd)
if @ASK(File @name(%q).txd exists.@cr()Do you want to continue?)
LIST list1,savefile,@name(%q).txd
END
else
LIST list1,savefile,@name(%q).txd
end
end
goto evloop
:savedBUTTON
%f =
%F = @filedlg(,Save file,%q)
if %f
dialog title, Disk Directory - @name(%f).txd
if @file(@name(%f).txd)
if @ASK(File @name(%f).txd exists.@cr()Do you want to continue?)
LIST list1,savefile,@name(%q).txd
END
else
LIST list1,savefile,%f
end
end
goto evloop
:mergebutton
file delete,base.txt
list 1,create
list 1,savefile,base.txt
list 1,close
list 1,create,sorted
list 1,filelist,*.txd
list 1,seek,0
repeat
%m = @IO(APPND,base.txt,@item(1))
if @next(1)
if @item(1)
end
end
until @not(@item(1))
list 1,close
dialog set,status,base.txt created
goto evloop
:loaddBUTTON
%d =
%d = @filedlg()
if %d
dialog title, Disk Directory - @name(%d).txd
LIST list1,loadfile,%d
end
goto evloop
:CLOSE
exit